package com.example.elderlycare.controller.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

public class EquipmentRequestBody {
    @Data
    public static class AddEquipmentRequestBody {
        private String code;
        private String modelName;
        private String simCode;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date issuedAt;
        private Integer isOnline;
        private Integer supplierId;
        private Integer equipTypeId;
        private Integer employeeId;
        private Integer issueMethodId;
        private Integer equipmentStatusId;
        private Integer berthId;
    }


    @Data
    public static class UpdateEquipmentRequestBody {
        private Integer id;
        private String code;
        private String modelName;
        private String simCode;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date issuedAt;
        private Integer isOnline;
        private Integer supplierId;
        private Integer equipTypeId;
        private Integer employeeId;
        private Integer issueMethodId;
        private Integer equipmentStatusId;
        private Integer berthId;
    }
}
